{template header}
<form class="form-horizontal" action="index.php?c=admin&a=userTag&uid={$uid}" method="post">
    <div class="control-group">
        <label class="control-label" >标签</label>
        <div class="controls">
          {loop $userTagList $id $tag}
          <label class="checkbox">
          <input type="checkbox" name="tagIds[]" {eval echo in_array($id,$userTagIds)? "checked":''} value="{$id}"></input>{$tag}
          </label>
          {/loop}
        </div>
    </div>
    
    <div class="control-group">
        <div class="controls">
            <textarea name="userTagIdsStr" style="display:none">{$userTagIdsStr}</textarea>
            <button type="submit" class="btn">提交</button>
        </div>
    </div>
</form>

{template footer}
